package org.lmind.srd35.world

import java.util.ArrayList

class Square {

  var _existence: List[Existence] = Nil

  def existence = _existence

  def add(index: Int, e: Existence) =
    _existence.slice(0, index) ++ (e :: _existence.slice(index, _existence.length))

  def remove(index: Int) = {
    _existence = _existence.slice(index, index + 1)
  }
}